package com.concurrent.chapter4.concurrent04;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Run {
	public static void main(String[] args) {
		ExecutorService executorService = Executors.newFixedThreadPool(3);
		for (int i = 0; i < 3; i++) {
			executorService.execute(new MyRunnable("" + i));
		}
		for (int i = 0; i < 3; i++) {
			executorService.execute(new MyRunnable("" + i));
		}
	}
}
